<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 100px;
            background-color: #0c5460;
            height: 100px;
        }
        p{
            background-color: #0b2e13;
            border-left: 10px solid silver;
            width: 100%;
            box-sizing: border-box;
            /*transform: translateX(-10px);*/
            /*box-sizing: border-box;*/
        }
    </style>
</head>
<body>
<div>
    <p>123</p>
</div>
</body>
</html>